From: Jan Beulich Date: Fri, 19 Aug 2022 07:58:14 +0000 (+0200) Subject: console/client: properly use time_t in get_pty_fd() X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~283 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2891f116e798a20ad35ab10e5a3c7f0c51156d81;p=xen.git console/client: properly use time_t in get_pty_fd() "int" is not a suitable type to hold time()'s return value. Coverity ID: 1509376 Signed-off-by: Jan Beulich Acked-by: Anthony PERARD --- diff --git a/tools/console/client/main.c b/tools/console/client/main.c index ada6728caa..1a6fa162f7 100644 --- a/tools/console/client/main.c +++ b/tools/console/client/main.c @@ -102,7 +102,7 @@ static int get_pty_fd(struct xs_handle *xs, char *path, int seconds) struct timeval tv; fd_set watch_fdset; int xs_fd = xs_fileno(xs), pty_fd = -1; - int start, now; + time_t start, now; unsigned int len = 0; char *pty_path, **watch_paths;